import request from '@/utils/request'
/**
 * 流程疏导列表查询
 * @param query
 */
export function channelList(query) {
  return request({
    url: '/act/channel/list',
    method: 'get',
    params: query
  })
}

/**
 * 分配用户
 * @param data
 */
export function channelTask(data) {
  return request({
    url: '/act/channel/channelTask',
    method: 'post',
    data: data
  })
}

/**
 * 查询流程全部节点
 * @param taskId
 */
export function getActivityList(taskId) {
  return request({
    url: '/act/channel/getActivityList/' + taskId,
    method: 'get'
  })
}

/**
 * 重新分配节点
 * @param taskId
 */
export function submitAdjustNode(taskId, activityId) {
  var data = {}
  data.taskId = taskId
  data.activityId = activityId
  return request({
    url: '/act/channel/submitAdjustNode',
    method: 'post',
    data: data
  })
}

/**
 * 重新分配节点
 * @param taskId
 */
export function submitAdjustNodeCheck(taskId) {
  var data = {}
  data.taskId = taskId
  return request({
    url: '/act/channel/submitAdjustNodeCheck',
    method: 'post',
    data: data
  })
}
